<%@page import="java.sql.ResultSet"%>
<%@page import="com.zhida84.Dao.CRecordDao"%>
<%@page import="com.zhida84.Impl.CRecordImpl"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="author" content="shangzhengbo&sunchangxing" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport"
	content="width=device-width, minimum-scale=1.0, maximum-scale=1.0" />
<title>美食推荐</title>
<script type="text/javascript">
/**function onBridgeReady() {
		WeixinJSBridge.call('hideOptionMenu');
	}
	if (typeof WeixinJSBridge == "undefined") {
		if (document.addEventListener) {
			document.addEventListener('WeixinJSBridgeReady', onBridgeReady,
					false);
		} else if (document.attachEvent) {
			document.attachEvent('WeixinJSBridgeReady', onBridgeReady);
			document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
		}
	} else {
		onBridgeReady();
	}
	// 对浏览器的UserAgent进行正则匹配，不含有微信独有标识的则为其他浏览器
	var useragent = navigator.userAgent;
	if (useragent.match(/MicroMessenger/i) != 'MicroMessenger') {
		// 这里警告框会阻塞当前页面继续加载
		var opened = window.open('about:blank', '_self');
		opened.opener = null;
		opened.close();
		window.location.href = "../error/wechat.html"
	}*/
</script>
<link rel="stylesheet" href="../css/getMoney.css" type="text/css">
</head>

<body>
	<div class="header">
		<a class="left" href="javascript:;"
			onClick="javascript:history.back(-1)"></a><span class="wallet">收款记录</span>
	</div>
	<%
		Cookie[] cookies = request.getCookies();
		String phone = null;
		if (cookies != null) {
			for (Cookie c : cookies) {
				if (c.getName().equals("phone"))// 依据cookies里面的手机   和日期两个键的对比出是哪个键
				{
					phone = c.getValue();
				}
			}
		}
		CRecordDao cr = new CRecordImpl();
		ResultSet rs = cr.getCollectionRecord(phone);
		while (rs.next()) {
			String jobName=rs.getString("jobName");
	%>


	<div class="content">
		<ul>
			<li>名称：<span><%=jobName%></span></li>
			<li>时间：<span><%=rs.getString("issueDate")%></span></li>
			<li>金额: <span><%=rs.getString("reSalary")%>元</span></li>
		</ul>
	</div>
	<%
		}
	%>

	<div class="Contact">
		<a href="tel:18706173108">联 系 小 巴</a>
	</div>
	<br>
	<br>
</body>
</html>